﻿using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DefeatEpidemic.RequestModels
{
    public class ExportModel
    {
    }

    public class ExportMemberModel
    {
        [ExporterHeader(DisplayName = "序号")]
        public int id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [ExporterHeader(DisplayName = "申请人")]
        public string name { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [ExporterHeader(DisplayName = "身份证号")]
        public string idcard { get; set; }
        /// <summary>
        /// 住址
        /// </summary>
        [ExporterHeader(DisplayName = "住址")]
        public string address { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        [ExporterHeader(DisplayName = "手机")]
        public string mobile { get; set; }
        

        /// <summary>
        /// 车牌号
        /// </summary>
        [ExporterHeader(DisplayName = "车牌号")]
        public string carNumber { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [ExporterHeader(DisplayName = "注册时间")]
        public DateTime created_at { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [ExporterHeader(DisplayName = "备注")]
        public string remark { get; set; }

        /// <summary>
        /// 角色，1-业主，2-物管人员
        /// </summary>
        //public int role_type { get; set; } = 1;
    }

    public class ExportApplicationModel
    {
        [ExporterHeader(DisplayName = "序号")]
        public int id { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>        
        [ExporterHeader(DisplayName= "申请人")]
        public string applicant { get; set; }
        /// <summary>
        /// 从哪来
        /// </summary>
        [ExporterHeader(DisplayName= "从哪来")]        
        public string from { get; set; }
        /// <summary>
        /// 到哪去
        /// </summary>        
        [ExporterHeader(DisplayName= "到哪去")]
        public string to { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>        
        [ExporterHeader(DisplayName= "联系方式")]
        public string connect { get; set; }
        /// <summary>
        /// 是否开车，0-不开，1-开
        /// </summary>
        [ExporterHeader(DisplayName= "是否开车")]
        public int isDirve { get; set; } = 0;
        /// <summary>
        /// 车牌号
        /// </summary>
        [ExporterHeader(DisplayName= "车牌号")]        
        public string carNumber { get; set; }
        /// <summary>
        /// 出行人数
        /// </summary>
        [ExporterHeader(DisplayName= "出行人数")]
        public int outNumber { get; set; }
        /// <summary>
        /// 审批状态，0-未审批，1-审批通过，2-审批不通过
        /// </summary>
        [ExporterHeader(DisplayName= "审批状态")]
        public string status { get; set; }
        /// <summary>
        /// 自测体温
        /// </summary>
        [ExporterHeader(DisplayName= "自测体温")]
        public float selfTemp { get; set; }
        /// <summary>
        /// 实测体温
        /// </summary>
        [ExporterHeader(DisplayName= "实测体温")]
        public float measuredTemp { get; set; }
        /// <summary>
        /// 原因
        /// </summary>
        [ExporterHeader(DisplayName= "审批原因")]        
        public string reason { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [ExporterHeader(DisplayName= "备注")]        
        public string remark { get; set; }
        /// <summary>
        /// 申请的出行时间
        /// </summary>
        [ExporterHeader(DisplayName= "审批时间")]
        public DateTime outTime { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        [ExporterHeader(DisplayName= "申请时间")]
        public DateTime created_at { get; set; }
    }
}
